import request from '@/utils/request.js'

export function getHousePage(params) {
    return request.get('/house/', {params});
}
export function getHouseById(id) {
    return request.get('/house/'+id);
}
export function createHouse(data) {
    return request.post('/house/create', data);
}
export function deleteHouseById(id) {
    return request.post('/house/delete/'+id);
}
export function updateHouse(data) {
    return request.post('/house/update', data);
}